<template>
  <van-popup v-model="showDialog">
    <div class="dialog-wrap">
      <p class="dialog-content">
        店铺内所有商品的默认加价将设置为【15元】，顾客进店后将看到更新后的价格，且无法享受优惠券抵扣政策，是否确认加价？
      </p>
      <div class="footer">
        <div class="btn left" @click="handleClose">取消</div>
        <div class="divide"></div>
        <div class="btn right" @click="handleSure">确定</div>
      </div>
    </div>
  </van-popup>
</template>

<script>
export default {
  name: 'confirmPopup',
  data() {
    return {
      showDialog: false
    };
  },
  methods: {
    handleClose() {
      this.showDialog = false;
    },
    handleSure() {}
  }
};
</script>

<style lang="scss" scoped>
.dialog-wrap {
  width: 5.5rem;
  background-color: #fff;
  border-radius: 0.08rem;
  font-size: 0.28rem;

  .dialog-content {
    width: 5.5rem;
    padding: 0.52rem 0.64rem 0.4rem 0.66rem;
    font-size: 0.28rem;
    color: #333;
    text-align: center;
    box-sizing: border-box;
  }

  .footer {
    height: 0.9rem;
    display: flex;
    border-top: 1px solid #eeeeee;

    .divide {
      height: 100%;
      width: 1px;
      background-color: #eeeeee;
    }
    .btn {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: 400;
      font-size: 0.28rem;
    }
    .left {
      color: #666;
    }
    .right {
      color: #333;
      font-weight: 500;
    }
  }
}

.van-popup {
  background-color: transparent;
}
</style>
